﻿/*====================================================================================
* Copyright (c) 2015-2026成都长益西联软件有限公司,All Rights Reserved.
*=====================================================================================
* 文件名称：Ords
* 功能描述：交易流水基础表【此表按年月自动创建】  数据库表  （本类由软件生成生成） 
* 创 建 者：HFL
* 创建时间：2018-03-13 11:34:24
* 修 改 者：HFL
* 修改时间：2018-03-13 11:34:24
*===================================================================================*/
using System;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace Model.DBModel
{
    /// <summary>
    /// 交易流水基础表【此表按年月自动创建】
    /// </summary>
    [Serializable]
    public partial class Ords
    {
        public ObjectId _id { get; set; }
        /// <summary>
        /// 主键：序号
        /// </summary>
        [Description("序号")]
       
        public string ID { get; set; }
        
        
        /// <summary>
        /// 企业代码
        /// </summary>
        [Description("企业代码")]
        public string CpnID { get; set; }
        
        /// <summary>
        /// 机构代码
        /// </summary>
        [Description("机构代码")]
        public string OrgID { get; set; }
        
        /// <summary>
        /// 业务日期
        /// </summary>
        [Description("业务日期")]
        public DateTime Dt { get; set; }
        
        /// <summary>
        /// 时间
        /// </summary>
        [Description("时间")]
        public Int32 H { get; set; }
        
        /// <summary>
        /// 收银机号
        /// </summary>
        [Description("收银机号")]
        public string RecDevice { get; set; }
        
        /// <summary>
        /// 收银员帐号
        /// </summary>
        [Description("收银员帐号")]
        public string RecMan { get; set; }
        
        /// <summary>
        /// 支付单据号
        /// </summary>
        [Description("支付单据号")]
        public string PayID { get; set; }
        
        /// <summary>
        /// 第三方平台单据号
        /// </summary>
        [Description("第三方平台单据号")]
        public string TransID { get; set; }
        
        /// <summary>
        /// 平台类型
        /// </summary>
        [Description("平台类型")]
        public string PayTyp { get; set; }

        /// <summary>
        /// 支付渠道
        /// </summary>
        [Description("支付渠道")]
        public string PayChannel { get; set; }

        /// <summary>
        /// 交易消息
        /// </summary>
        [Description("交易消息")]
        public string Msg { get; set; }


        /// <summary>
        /// 交易类型[1 支付、-1 退款]
        /// </summary>
        [Description("交易类型[1 支付、-1 退款]")]
        public Int32 Typ { get; set; }
        
        /// <summary>
        /// 收款账号
        /// </summary>
        [Description("收款账号")]
        public string PID { get; set; }
        
        /// <summary>
        /// 买方账号
        /// </summary>
        [Description("买方账号")]
        public string UID { get; set; }
        
        /// <summary>
        /// 折扣金额
        /// </summary>
        [Description("折扣金额")]
        public decimal? Disc { get; set; }
        
        /// <summary>
        /// 交易金额
        /// </summary>
        [Description("交易金额")]
        public decimal? Price { get; set; }
        
        /// <summary>
        /// 减免金额
        /// </summary>
        [Description("减免金额")]
        public decimal? DerAmt { get; set; }
        
        /// <summary>
        /// 实付金额
        /// </summary>
        [Description("实付金额")]
        public decimal? Amt { get; set; }
        
        /// <summary>
        /// 商户承担金额
        /// </summary>
        [Description("商户承担金额")]
        public decimal? CpnAmt { get; set; }
        
        /// <summary>
        /// 第三方平台承担金额
        /// </summary>
        [Description("第三方平台承担金额")]
        public decimal? OthAmt { get; set; }
        
        /// <summary>
        /// 平台承担金额
        /// </summary>
        [Description("平台承担金额")]
        public decimal? WuAmt { get; set; }
        
        /// <summary>
        /// 请求时间
        /// </summary>
        [Description("请求时间")]
        public DateTime ReqDt { get; set; }
        
        /// <summary>
        /// 响应时间
        /// </summary>
        [Description("响应时间")]
        public DateTime ResDt { get; set; }
        
        /// <summary>
        /// 响应时长
        /// </summary>
        [Description("响应时长")]
        public decimal ResTimes { get; set; }
        
        /// <summary>
        /// 交易状态
        /// </summary>
        [Description("交易状态")]
        public Int32 Stt { get; set; }
        
        /// <summary>
        /// 参与平台活动[0-否、1-是]
        /// </summary>
        [Description("参与平台活动[0-否、1-是]")]
        public Int32 IsLkdrw { get; set; }
        
        /// <summary>
        /// 活动编号
        /// </summary>
        [Description("活动编号")]
        public string BllNo { get; set; }
        
        /// <summary>
        /// 奖品池序号
        /// </summary>
        [Description("奖品池序号")]
        public Int32 Rdx { get; set; }
    }
}
